/*
 * Copyright the original author or authors.
 * 
 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.mozilla.org/MPL/MPL-1.1.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
package com.airlogger.log.model
{
	import com.bourre.log.LogLevel;
	
import flash.utils.getQualifiedClassName;	public class LogData
	{		
		public var message : *;
		public var level : LogLevel;
		public var date : Date;
		public var type : String;
		public var airtype : String;
		public var file : String;
		public var clazz : String;
		public var func : String;
		public var line : String;
		public var customParams : Array;
		
		public function LogData ( level : LogLevel,
								  message : *, 
								  date : Date, 
								  type : String,
								  file : String = null,
								  clazz : String = null,
								  func : String = null,
								  line : String = null, 
								  customParams : Array = null )
		{
			this.message = message;
			this.level = level;
			this.date = date;
			this.type = type;
			this.clazz = clazz;
			this.func = func;
			this.line = line;
			this.file = file;
			this.customParams = customParams;
			airtype = getQualifiedClassName( message );
		}
	}
}